import org.hibernate.SessionFactory;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.service.spi.ServiceRegistryImplementor;

public class A {
    public static void main(String[] args) {

//        MetadataImplementor metadata = new MetadataImpl();

//        StandardServiceRegistry standardServiceRegistry = new StandardServiceRegistryImpl();

//        BootstrapContext bootstrapContext = new BootstrapContextImpl();
//        SessionFactoryOptions sessionFactoryOptions = new SessionFactoryOptionsBuilder();
//        SessionFactory factory = new SessionFactoryImpl(metadata);
//
//        SchemaManagementToolCoordinator.process(
//                metadata,
//                getRegistry(factory),
//                factory.getProperties(),
//                action -> {
//
//                }
//        );
//        SchemaCreator
    }

    private static ServiceRegistryImplementor getRegistry(SessionFactory factory) {
        return ((SessionFactoryImplementor) factory).getServiceRegistry();
    }
}
